import os

def main():
    os.chdir("D:\Pycharm\project\PythonCrawler\Crawl_video_asynchronously\download_file")
    list_dir = os.listdir()
    for i in list_dir:
        if i != "movie.mp4" and i != '合并视频.bat':
            os.remove(i)

if __name__ == "__main__":
    main()